#ifndef FOLDER_H
#define FOLDER_H

#include <stdio.h>
#include <sys/types.h>
#include <dirent.h>

#include "Ogre.h"
#include "file.h"

using namespace std;

class Folder {
	public :
		DIR *rep;
		struct dirent *lecture;
		Ogre::String name;
		int size;
		list<Folder> subfolders_list;
		list<File> files_list;
		Date creat_date;
		Date modif_date;

		Folder::Folder(Ogre::String n);
		void addSubfolder(Folder *f);
		void addFile(File *f);
		~Folder();
};

#endif
